/**
 * Header de Piece.cxx
 *
 * @file Piece.h
 */

#if !defined Piece_h
#define Piece_h

/**
 * Declaration d'une classe mod�lisant une piece de jeu d'echec.
 */
#include "Echiquier.h"
using namespace std;
class Piece
{
protected:
    int m_x;
    int m_y;
    bool m_white;

public:
    Piece();
    Piece(int x, int y,bool white);
    void init( int x, int y, bool white );
    void move( int x, int y );
    int x();
    int y();
    virtual bool mouvementvalide(Echiquier *e, int x, int y );
    bool isWhite();
    bool isBlack();
    virtual void affiche();
    virtual char tostring();
    virtual ~Piece();

};

#endif // !defined Piece_h
